/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 配件主数据Entity
 * @author yangs
 * @version 2017-10-10
 */
public class CarParts extends DataEntity<CarParts> {
	
	private static final long serialVersionUID = 1L;
	private String carCode;		// 车型号
	private String partsCode;		// 配件号
	
	public CarParts() {
		super();
	}

	public CarParts(String id){
		super(id);
	}

	@Length(min=0, max=50, message="车型号长度必须介于 0 和 50 之间")
	public String getCarCode() {
		return carCode;
	}

	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}
	
	@Length(min=0, max=50, message="配件号长度必须介于 0 和 50 之间")
	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}
	
}